//
//  UITextField+XWKit.h
//  Tiipvi
//
//  Created by xiaowuxiaowu on 2017/4/26.
//  Copyright © 2017年 xiaowuxiaowu. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UITextField (XWKit)

+(instancetype)initWithPlaceholder:(NSString *)placeholder text:(NSString *)text;

+(instancetype)initWithFrame:(CGRect)frame  placeholder:(NSString *)placeholder text:(NSString *)text;

+(instancetype)initWithFrame:(CGRect)frame fontSize:(CGFloat)fontSize placeholder:(NSString *)placeholder text:(NSString *)text;

+(instancetype)initWithFrame:(CGRect)frame borderStyle:(UITextBorderStyle)borderStyle fontSize:(CGFloat)fontSize placeholder:(NSString *)placeholder text:(NSString *)text;

+(instancetype)setupTextField_placeholder:(NSString *)placeholder left:(NSString *)left toTextFieldHeight:(CGFloat)textFieldHeight subView:(UIView *)mainView;

-(void)setPlaceholderLabelTextColor:(UIColor *)textColor;
-(UIView *)xw_addLeftViewFrame:(CGRect)frame;
-(UIView *)xw_addRightViewFrame:(CGRect)frame;
-(UIImageView *)xw_addLeftImageViewFrame:(CGRect)frame image:(UIImage *)image imageFrame:(CGRect)imageFrame;
-(UIButton *)xw_addRightCodeViewFrame:(CGRect)frame string:(NSString *)string btnFrame:(CGRect)btnFrame color:(UIColor *)color;
@end
